#include <math.h>
#include <stdlib.h>
#include <unistd.h>

#include <iostream>

#include "gsearchnode.h"

/**
 *
 */
ostream& operator<<(ostream& os,const searchnode& sn) {
  //int nbrbatch ; // number of batches
  //int job ;      // job to place
  //vector<double> tabBatchRemainingCapacity ;
  //OGSupplyLinkSolutionPartial sol ;
  os << "searchnode=[nbrbatch=" << sn.nbrbatch << ", " ;
  os << "job=" << sn.job << ", " ;
  os << "tabBatchRemainingCapacity=[" ;
  for (int i=0;i<sn.tabBatchRemainingCapacity.size();++i) {
    os << sn.tabBatchRemainingCapacity[i]  ;
    if (i<sn.tabBatchRemainingCapacity.size()-1) os << ", " ;
  }
  os << "], sol=" << sn.sol << "]" ;

  return os ;
}
